import request from '@/utils/request'

// 获取-员工列表
export const getEmployeeListApi = params => {
  return request.get('/sys/user', { params })
}

// 删除-员工
export const delEmployeeAPI = id => {
  return request.delete(`/sys/user/${id}`)
}

// 添加-员工
export const addEmployeeAPI = data => {
  return request.post('/sys/user', data)
}

// 分配-员工-角色
export const assignRolesAPI = data => {
  return request.put('/sys/user/assignRoles', data)
}
